from langchain_community.document_loaders import CSVLoader

file_path = (
    "../resource/doc_search.csv"
)

loader = CSVLoader(file_path=file_path, encoding="UTF-8")
data = loader.load()

for record in data[:2]:  # 获取前2个元素
    print(record)
    print("-" * 50)
